import request from '@/utils/request'

// 申请社团换届
export function createClubTranslation(data) {
  return request({
    url: '/api/club_translation/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 获取申请列表
export function getTranslationList(data) {
  return request({
    url: '/api/club_translation/',
    method: 'get',
    params: data
  })
}

// 获取一级审核列表
export function getFirstCheckTrans(data) {
  return request({
    url: '/api/club_translation/first_check_list/',
    method: 'get',
    params: data
  })
}

// 获取二级审核列表
export function getSecondCheckTrans(data) {
  return request({
    url: '/api/club_translation/second_check_list/',
    method: 'get',
    params: data
  })
}

// 进行一级审核
export function firstCheckTrans(id, data) {
  return request({
    url: '/api/club_translation/' + id + '/first_check/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 进行二级审核
export function secondCheckTrans(id, data) {
  return request({
    url: '/api/club_translation/' + id + '/second_check/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}
